package com.oa.ylms.apps.business.organization;

import java.util.List;

import com.oa.ylms.apps.entity.organization.PostInfoValue;

public interface IPostInfoService {
        public int addPostInfo(int categoryId, int sectionId, String postName,String postNo) throws Exception;
        public boolean deletePostInfo(String postIds) throws Exception;
        public boolean modifyPostInfo(int postId, int categoryId, int sectionId, String postName,String postNo) throws Exception;
        public boolean toDisable(int postId) throws Exception;
        public boolean toEnable(int postId) throws Exception;
        public PostInfoValue queryByPostId(int postId) throws Exception;
    	public PostInfoValue queryByCategoryIdAndSectionId(int categoryId, int sectionId)throws Exception;
        public List<PostInfoValue> queryPostInfoBySectionId(int sectionId) throws Exception;
        public List<PostInfoValue> queryPostInfoWithPage(Integer categoryId, Integer sectionId, Integer states, int rows, int pageNo) throws Exception;
        public int countTPages(Integer categoryId, Integer sectionId, Integer states, int rows) throws Exception;
        public int getTotalPages() throws Exception;
}
